from langchain_huggingface import HuggingFaceEmbeddings

embeding = HuggingFaceEmbeddings(show_progress=True,
                                 model = "sentence-transformers/all-MinLM-L6-v2",
                                 cache_folder="./embedding_cache"

)

query_vector = embeding.embed_query("你好，我叫博小瑞")
print(query_vector)
print(len(query_vector))